<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>添加用户</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
            	   window.location='__URL__/infodetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
	</script>		
</head>
<body>
<layout name="Auth:header" />
    		<div class="container-fluid">
     			<div class="row-fluid">
        			<layout name="Auth:leftmenu" />
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>添加用户</h1>
                            <p style="font-size:12px">当前位置：
                            <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                            <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                            <a href='__URL__/infodetail' class="nowpositionhref">用户管理</a>>
                            <a href="" class="nowpositionhref">添加用户</a>
                            </p>
                          </div>
                          <div id='result' style="position:relative; left:400px; "></div>
                          		
	
	

		<form id='form1' method="post" action="__URL__/infoadd_post" >
			
            <table>
            	<thead>
                	<tr>
                    	<th><input type="text" name="no" placeholder="工号/学号" class="input-xxlarge"><span style="color:red">*</span></th>
                    </tr>
                    <tr>
                    	<th><input type="text" name="cno" placeholder="班级号" class="input-xxlarge"></th>
                    </tr>
                    <tr>
                    	<th><input type="text" name="name" placeholder="姓名" class="input-xxlarge"><span style="color:red">*</span></th>
                    </tr>
                    <tr>
                    	<th><input type="text" name="password" placeholder="密码" class="input-xxlarge"><span style="color:red">*</span></th>
                    </tr>
                    <tr>
                    	<th style="text-align:left">
                        	<code>权限</code><select name="role">
                            	<option></option>
							 <volist name='rolelist' id='vo'>
								<option value =	{$vo}>{$vo}</option>
							 </volist>
                             </select>
                             <span style="color:red">*</span>
                        </th>
                    </tr>
                    <tr>
                    	<th  style="text-align:left">
                        	<code>院系</code><select name="departmentid">
                            	<option></option>									  
								<volist name='deplist' id='vo'>
								<option value =	{$vo.id}>{$vo.name}</option>
								</volist>
								</select>
                                <span style="color:red">*</span>
                        </th>
                    </tr>
                    <tr>
                    	<th style="text-align:left"><input type="submit" value="添加" class="btn btn-success" style="width:80px;" ></th>
                    </tr>
                </thead>
            </table>		
			</form>
			</div>
		</div>
	</div>
    <script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>